{{tag>wifi}}
----

====== Wificheck ======
Wificheck est un script bash créé pour faciliter la récolte des informations nécessaires à la résolution d'une majorité des problèmes rencontrés avec les [[:wifi|connexions sans-fil]].\\
Ces informations sont celles demandées expressément sur le sujet [[http://forum.ubuntu-fr.org/viewtopic.php?id=141183|A lire avant de poster !!!]] du forum.

Un fil de discussion [[http://forum.ubuntu-fr.org/viewtopic.php?id=1089311|ici]] vous permet d'apporter vos suggestions et contributions au script.

===== Pré-requis =====
Le script nécessite des droits administrateur pour l'exécution de certaines commandes, votre mot de passe vous sera donc demandé.

===== Installation et lancement =====

__Étape 1__: Copiez et collez cette ligne dans un terminal, et validez par la touche entrée :

   wget -N -t 5 -T 10 https://framagit.org/cracolinux/wificheck/raw/master/wificheck && chmod +x wificheck && ./wificheck
Cette commande crée un fichier wificheck.log dans le dossier personnel. Ce fichier est un recueil d'informations sur les cartes wifi, les pilotes utilisés, le chiffrement de la box utilisé, ... \\
__Étape 2__: Il ne reste plus qu'à copier le contenu du fichier wificheck.log (et non le fichier wificheck qui est le programme qui a généré le fichier wificheck.log) situé dans le dossier personnel et le copier sur le forum.\\
Nota: les balises code sont incluses dans le fichier wificheck.log, inutile de les ajouter.
[code]

>>    lsb_release -a

Distributor ID:	Ubuntu
Description:	Ubuntu 20.04.1 LTS
Release:	20.04
Codename:	focal

>>    lsusb 

Bus 002 Device 002: ID 8087:8000 Intel Corp. 
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:8008 Intel Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 002: ID 04f2:b3ed Chicony Electronics Co., Ltd HP HD Webcam
Bus 003 Device 003: ID 0a5c:21f1 Broadcom Corp. HP Portable Bumble Bee
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

>>    lspci -k -nn | grep -A 3 -i net 

00:19.0 Ethernet controller [0200]: Intel Corporation Ethernet Connection I217-V [8086:153b] (rev 04)
	Subsystem: Hewlett-Packard Company Ethernet Connection I217-V [103c:1993]
	Kernel driver in use: e1000e
	Kernel modules: e1000e
00:1a.0 USB controller [0c03]: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #2 [8086:8c2d] (rev 04)
--
02:00.0 Network controller [0280]: Broadcom Inc. and subsidiaries BCM43228 802.11a/b/g/n [14e4:4359]
	DeviceName: WLAN
	Subsystem: Broadcom Inc. and subsidiaries BCM43228 802.11a/b/g/n [14e4:05e2]
	Kernel driver in use: bcma-pci-bridge

>>    sudo lshw -C network 

  *-network
       description: Ethernet interface
       produit: Ethernet Connection I217-V
       fabricant: Intel Corporation
       identifiant matériel: 19
       information bus: pci@0000:00:19.0
       nom logique: enp0s25
       version: 04
       numéro de série: a0:2b:b8:2c:82:8d
       taille: 1Gbit/s
       capacité: 1Gbit/s
       bits: 32 bits
       horloge: 33MHz
       fonctionnalités: pm msi bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
       configuration : autonegotiation=on broadcast=yes driver=e1000e driverversion=3.2.6-k duplex=full firmware=0.12-3 ip=192.168.1.53 latency=0 link=yes multicast=yes port=twisted pair speed=1Gbit/s
       ressources : irq:28 mémoire:d0700000-d071ffff mémoire:d073f000-d073ffff portE/S:3080(taille=32)
  *-network
       description: Network controller
       produit: BCM43228 802.11a/b/g/n
       fabricant: Broadcom Inc. and subsidiaries
       identifiant matériel: 0
       information bus: pci@0000:02:00.0
       version: 00
       bits: 64 bits
       horloge: 33MHz
       fonctionnalités: pm msi pciexpress bus_master cap_list
       configuration : driver=bcma-pci-bridge latency=0
       ressources : irq:18 mémoire:d0500000-d0503fff

>>    lsmod | sort 

aesni_intel           372736  4
af_alg                 24576  6 algif_hash,algif_skcipher
ahci                   40960  2
algif_hash             16384  1
algif_skcipher         16384  1
autofs4                45056  2
b43                   417792  0
bcma                   65536  1 b43
bluetooth             581632  31 btrtl,btintel,btbcm,bnep,btusb,rfcomm
bnep                   24576  2
btbcm                  16384  1 btusb
btintel                24576  1 btusb
btrtl                  24576  1 btusb
btusb                  57344  0
cfg80211              704512  2 b43,mac80211
cmac                   16384  3
cordic                 16384  1 b43
coretemp               20480  0
crc32_pclmul           16384  0
crct10dif_pclmul       16384  1
cryptd                 24576  3 crypto_simd,ghash_clmulni_intel
crypto_simd            16384  1 aesni_intel
drm                   491520  9 drm_kms_helper,i915
drm_kms_helper        184320  1 i915
e1000e                258048  0
ecc                    28672  1 ecdh_generic
ecdh_generic           16384  2 bluetooth
fb_sys_fops            16384  1 drm_kms_helper
ghash_clmulni_intel    16384  0
glue_helper            16384  1 aesni_intel
hp_accel               28672  0
hp_wireless            16384  0
hp_wmi                 16384  0
i2c_algo_bit           16384  1 i915
i2c_i801               32768  0
i915                 1986560  16
ie31200_edac           16384  0
input_leds             16384  0
input_polldev          20480  1 lis3lv02d
intel_cstate           20480  0
intel_powerclamp       20480  0
intel_rapl_common      24576  1 intel_rapl_msr
intel_rapl_msr         20480  0
ip_tables              32768  0
joydev                 24576  0
kvm                   663552  0
ledtrig_audio          16384  1 snd_hda_codec_generic
libahci                32768  1 ahci
libarc4                16384  1 mac80211
lis3lv02d              24576  1 hp_accel
lp                     20480  0
lpc_ich                24576  0
mac80211              843776  1 b43
mac_hid                16384  0
mc                     53248  4 videodev,videobuf2_v4l2,uvcvideo,videobuf2_common
mei                   106496  3 mei_hdcp,mei_me
mei_hdcp               24576  0
mei_me                 40960  1
memstick               20480  1 rtsx_pci_ms
Module                  Size  Used by
nls_iso8859_1          16384  1
parport                53248  3 parport_pc,lp,ppdev
parport_pc             40960  1
ppdev                  24576  0
psmouse               155648  0
rapl                   20480  0
rfcomm                 81920  4
rtsx_pci               73728  2 rtsx_pci_sdmmc,rtsx_pci_ms
rtsx_pci_ms            24576  0
rtsx_pci_sdmmc         28672  0
sch_fq_codel           20480  2
serio_raw              20480  0
snd                    90112  19 snd_hda_codec_generic,snd_seq,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_timer,snd_pcm,snd_hda_codec_idt,snd_rawmidi
snd_hda_codec         131072  4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_idt
snd_hda_codec_generic    81920  1 snd_hda_codec_idt
snd_hda_codec_hdmi     61440  2
snd_hda_codec_idt      61440  1
snd_hda_core           90112  5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_idt
snd_hda_intel          53248  4
snd_hwdep              20480  1 snd_hda_codec
snd_intel_dspcfg       24576  1 snd_hda_intel
snd_pcm               106496  4 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_core
snd_rawmidi            36864  1 snd_seq_midi
snd_seq                69632  2 snd_seq_midi,snd_seq_midi_event
snd_seq_device         16384  3 snd_seq,snd_seq_midi,snd_rawmidi
snd_seq_midi           20480  0
snd_seq_midi_event     16384  1 snd_seq_midi
snd_timer              36864  2 snd_seq,snd_pcm
soundcore              16384  1 snd
sparse_keymap          16384  1 hp_wmi
ssb                    73728  1 b43
syscopyarea            16384  1 drm_kms_helper
sysfillrect            16384  1 drm_kms_helper
sysimgblt              16384  1 drm_kms_helper
tpm_infineon           20480  0
uvcvideo               98304  0
video                  49152  1 i915
videobuf2_common       49152  2 videobuf2_v4l2,uvcvideo
videobuf2_memops       20480  1 videobuf2_vmalloc
videobuf2_v4l2         24576  1 uvcvideo
videobuf2_vmalloc      20480  1 uvcvideo
videodev              225280  3 videobuf2_v4l2,uvcvideo,videobuf2_common
wmi                    32768  2 hp_wmi,wmi_bmof
wmi_bmof               16384  0
x86_pkg_temp_thermal    20480  0
x_tables               40960  1 ip_tables
[/code]
[code]

>>    iwconfig 


>>    ip a 

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: enp0s25: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether a0:2b:b8:2c:82:8d brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.53/24 brd 192.168.1.255 scope global dynamic noprefixroute enp0s25
       valid_lft 3305sec preferred_lft 3305sec
    inet6 fe80::b1fc:f8a0:f57f:7d11/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever

>>    sudo iwlist scan 


>>    uname -r -m 

5.4.0-45-generic x86_64

>>    cat /etc/network/interfaces 


>>    nm-tool 


>>    nmcli dev wifi 


>>    nmcli connection list (< 15.04) ou nmcli connection show (>= 15.04) 

NAME                 UUID                                  TYPE      DEVICE  
Connexion filaire 1  1e82b927-90b4-3fb2-af83-b2de2cc300dd  ethernet  enp0s25 

>>    sudo rfkill list 

0: hci0: Bluetooth
	Soft blocked: no
	Hard blocked: no
[/code]
===== Désinstallation =====
Pour désinstaller le script il suffit de supprimer le fichier wificheck.

----
//Contributeurs: fabux, cracolinux//